package jiuba

import "fmt"

func Jiuba() {
	var mingzi string
	fmt.Println("请输入酒吧名字")
	fmt.Scanln(&mingzi)
	var weizhi string
	fmt.Println("请输入酒吧位置")
	fmt.Scanln(&weizhi)
	var dianhua string
	fmt.Println("请输入电话")
	fmt.Scanln(&dianhua)
	guimo, laozong, fendian := Search(mingzi, weizhi, dianhua)
	fmt.Println(guimo, laozong, fendian)
}

func Search(mingzi string, weizhe string, dianhua string) (guimo string, laozong string, fendian []string) {

	switch mingzi {
	case "情场酒吧":
		guimo = "超大"
		fendian = append(fendian, "重庆万州", "重庆巫山", "重庆渝北", "重庆开州")
		laozong = "汪总"
	case "相约酒吧":
		guimo = "大"
		fendian = append(fendian, "上海嘉定", "上海徐汇", "上海九江", "上海南京")
		laozong = "柳总"

	}
	return
}
